LearnPress\Models\UserItems\UserCourseModel C

Total Complexity 101
Dependencies 15
Dependents 13
Total lines 766
Lines of code 445
Logical lines of code 296
Comment lines 202
Methods 25
Properties 4

Methods 25

Method Rating Maintainability Complexity Lines of code
calculate_course_results()
B
36 14 82
evaluate_course_by_question()
A
43 10 49
timestamp_remaining_duration()
A
48 10 34
evaluate_course_by_final_quiz()
A
44 9 45
can_retake()
S
53 7 24
evaluate_course_by_mark()
S
56 6 17
evaluate_course_by_questions()
S
56 6 17
get_item_attend()
S
51 4 27
count_items_completed()
S
52 4 24
find()
S
56 4 19
evaluate_course_by_quizzes_passed()
S
58 4 15
evaluate_course_by_lesson()
S
58 4 15
count_students()
S
55 3 20
get_last_user_course()
S
60 2 13
has_enrolled_or_finished()
S
79 2 3
get_course_model()
S
71 2 6
__construct()
S
72 2 6
has_enrolled()
S
80 1 3
get_retaken_count()
S
79 1 3
get_graduation()
S
82 1 3
is_passed()
S
80 1 3
is_finished()
S
80 1 3
clean_caches()
S
67 1 8
has_finished()
S
80 1 3
has_purchased()
S
80 1 3